package com.zcb.myrxjavathreecache.tools;

/**
 * Created by asus on 2016/12/25.
 */

public class PartTool {
    private static final int XIAO_SHOU_BU=10;
    private static final int KE_FU_BU=20;
    private static final int WAI_LIAN_BU=30;
    private static final int XING_ZHENG_BU=40;


    public int getCityId(String cityName){
        int cityid=0;
        switch (cityName){
            case "销售部" :
                cityid=XIAO_SHOU_BU;
                break;
            case "客服部" :
                cityid=KE_FU_BU;
                break;
            case "外联部" :
                cityid=WAI_LIAN_BU;
                break;
            case "行政部" :
                cityid=XING_ZHENG_BU;
                break;
        }
    return cityid;
    }


}
